package com.inter.utils.mail;

import org.springframework.mail.SimpleMailMessage;

public class SendMailUtil {

    /**
     * Description 邮件发送自定义方法
     *
     * @param subject 邮件标题
     * @param text    邮件内容
     * @author WEIQI
     * @createDate 2019/6/14 17:03
     **/
    public SimpleMailMessage sendIdentifyingCode(String subject, String text) {
        SimpleMailMessage simpleMailMessage = new SimpleMailMessage();
        simpleMailMessage.setSubject(subject);
        simpleMailMessage.setText(text);
        simpleMailMessage.setFrom("liumin@linksfield.net");
        simpleMailMessage.setTo("service@linksfield.net");
        return simpleMailMessage;
    }


}
